package chapter02;

public class Example06 {
    public static void main(String[] args) {
        int x = 0;
        int y = 0;
        int z = 0;
        boolean a, b;
        // false & false  a是false
        a = x > 0 & y++ > 1;
        System.out.println(a);
        // 上面y++运算过了 y是1
        System.out.println("y = " + y);
        // false && false  b是false
        b = x > 0 && z++ > 1;
        System.out.println(b);
        // z 是 1
        System.out.println("z = " + z);
    }
}
